package com.pkk.alert.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @description: 报警的通用初始化
 * @author: peikunkun
 * @create: 2019-07-06 11:45
 **/
@Component
public class AlertInitCommon {

  /**
   * 设置接受者的email
   *
   * @param receiveEmailUser
   */
  @Value("${spring.mail.receiveuser:656678879@qq.com}")
  public void setAlarmEmail(String receiveEmailUser) {
    AlertConstant.receiveEmailUser = receiveEmailUser;
  }
}
